<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="SqlWebAdmin.Login" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>SQL Server Web Query</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" type="text/css" href="admin.css">
</head>
<body style="margin: 0px">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100px;
            border: 0px; padding: 0px; background-image: url(images/bg_header.gif); background-repeat: repeat-x">
            <tr style="padding: 0px">
                <!-- Start Header -->
                <td style="height: 100px">
                    <img src="images/logo_header.gif" alt="" style="border: 0px; padding: 0px" />
                </td>
                <!-- End Header -->
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;
            padding: 0px; border: 0px">
            <tr>
                <td style="width: 100px; height: 100%; vertical-align: top">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100px; height: 100%;
                        border: 0px; padding: 0px; background-image: url(images/bg_nav.gif); background-repeat: repeat-y">
                        <tr style="height: 100%; padding: 0px">
                            <td style="height: 100%; padding: 0px">
                                <!-- Start Navigation -->
                                <br /><br /><br /><br />
                                <br /><br /><br /><br />
                                <br /><br /><br /><br />
                                <br /><br /><br /><br />
                                <br /><br /><br /><br />
                                <!-- End Navigation -->
                            </td>
                        </tr>
                        <tr style="padding: 0px">
                            <td style="padding: 0px; vertical-align: bottom;">
                                <img src="images/fg_nav.gif" alt="" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="vertical-align: top">
                    <table border="0" cellpadding="30" cellspacing="0" style="width: auto; height: auto;
                        border: 0px; padding: 0px; background-image: url(images/bg_page.gif); background-repeat: no-repeat">
                        <tr>
                            <td style="width: auto">
                                <!-- Start Page Content -->
                                <asp:ScriptManager ID="ScriptManager1" runat="server">
                                </asp:ScriptManager>
                                <!-- START CONTENT SECTION -->
                                <table cellspacing="0" cellpadding="0" border="0" width="500px">
                                    <tr>
                                        <!--BEGIN ONE LINE-->
                                        <td valign="bottom" colspan="2" height="8" width="100%">
                                            <img src="images/spacer.gif" width="1" height="8" alt="" border="0" /></td>
                                        <!--END ONE LINE-->
                                    </tr>
                                    <tr>
                                        <!--BEGIN ONE LINE-->
                                        <td align="left" width="12" style="height: 281px">
                                            <img src="images/spacer.gif" width="12" height="1" alt="" border="0" /></td>
                                        <!--END ONE LINE-->
                                        <td align="left" class="databaseListItem" style="width: 400px; height: 281px; padding: 20px;
                                            background-color: #b4c6f3; background-image: url(images/bg_login.gif); background-repeat: repeat">
                                            <!-- PAGE CONTENT: START -->
                                            <asp:Label ID="LogoutInfoLabel" runat="server" Visible="False">You are now logged out.</asp:Label>
                                            <asp:Label ID="LoginInfoLabel" runat="server" Visible="False" Font-Size="10 pt" Font-Bold="true">Welcome to the Web Data Administrator.</asp:Label>
                                            <br />
                                            <br />
                                            <asp:Label ID="lblCredMsg" runat="server" Font-Size="8 pt">Please enter your SQL Server credentials:</asp:Label>
                                            <br />
                                            <br />
                                            <table border="0" cellpadding="0" cellspacing="1">
                                                <tr>
                                                    <td class="databaseListItem">
                                                        Username</td>
                                                    <td class="databaseListItem" width="50">
                                                        &nbsp;</td>
                                                    <td class="databaseListItem">
                                                        <asp:TextBox ID="UsernameTextBox" runat="server" Columns="35"></asp:TextBox></td>
                                                    <td class="databaseListItem">
                                                        <asp:RequiredFieldValidator ID="UsernameRequiredFieldValidator" runat="server" ErrorMessage=" Must specify a user name"
                                                            ControlToValidate="UsernameTextBox" Display="Dynamic"></asp:RequiredFieldValidator></td>
                                                </tr>
                                                <tr>
                                                    <td class="databaseListItem">
                                                        Password</td>
                                                    <td class="databaseListItem" width="50">
                                                        &nbsp;</td>
                                                    <td class="databaseListItem">
                                                        <asp:TextBox ID="PasswordTextBox" runat="server" Columns="35" TextMode="Password"></asp:TextBox></td>
                                                    <td class="databaseListItem">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="databaseListItem">
                                                        Server</td>
                                                    <td class="databaseListItem" width="50">
                                                        &nbsp;</td>
                                                    <td class="databaseListItem">
                                                        <asp:TextBox ID="ServerTextBox" runat="server" Columns="35"></asp:TextBox></td>
                                                    <td class="databaseListItem">
                                                        <asp:RequiredFieldValidator ID="ServerRequiredFieldValidator" runat="server" ErrorMessage=" Must specify a server name"
                                                            ControlToValidate="ServerTextBox" Display="Dynamic"></asp:RequiredFieldValidator></td>
                                                </tr>
                                                <tr valign="top">
                                                    <td class="databaseListItem">
                                                        <asp:Label ID="lblAuth" runat="server">Authentication<br />Method</asp:Label></td>
                                                    <td class="databaseListItem" width="50">
                                                    </td>
                                                    <td class="databaseListItem" nowrap>
                                                        <asp:RadioButtonList ID="AuthRadioButtonList" runat="server" AutoPostBack="True"
                                                            OnSelectedIndexChanged="AuthRadioButtonList_SelectedIndexChanged">
                                                            <asp:ListItem Value="windows" Selected="True">Windows Integrated</asp:ListItem>
                                                            <asp:ListItem Value="sql">SQL Login</asp:ListItem>
                                                        </asp:RadioButtonList></td>
                                                    <td class="databaseListItem">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="databaseListItem" colspan="3" align="right">
                                                        <asp:Button ID="LoginButton" CssClass="button" onMouseOver="this.style.color='#808080';"
                                                            onMouseOut="this.style.color='#000000';" runat="server" Text="Login" OnClick="LoginButton_Click">
                                                        </asp:Button>
                                                    </td>
                                                    <td class="databaseListItem">
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                            <asp:Label ID="ErrorLabel" runat="server" Visible="False" ForeColor="red"></asp:Label>
                                            <!-- PAGE CONTENT: END -->
                                        </td>
                                    </tr>
                                </table>
                                <!-- End Page Content -->
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
